package br.com.lh.ura.database;

import java.io.Serializable;

import br.com.locaweb.pabx.core.models.SoundFile;

public class FlexSoundFile implements Serializable {

    private static final long serialVersionUID = 1L;
    public Integer _soundId;
    public String label;
    public String data;

    public FlexSoundFile() {

    }

    public FlexSoundFile(SoundFile soundFile) {
	_soundId = soundFile.getId();
	data = soundFile.getExtendedDescription();
	label = soundFile.getName();
    }

    @Override
    public boolean equals(Object obj) {
	return ((FlexSoundFile) obj).label.equals(label);
    }

}
